15
It should be:
grep -E '^[[:alpha:]]{4}$' words
We anchor it (since a 5-letter string also contains a 4-letter string), and POSIX character classes must be contained in a bracket expression ([]). Also, we quote for the shell. And it needs to be extended, so -E.