Well, I get an error message from Codeacademy (“Oops, try again. Is your string at least three words long?”)
The program itself works fine (counting the letters,spaces,…) only Codeacademy doesn’t let one pass with this answer even though it seems correct for me.