Cleanup.
Don't forget to munmap.
wc reads files. Counts words properly,

That is, not by the number of spaces, but by the number of spaces
preceded by a nonspace character.