alternate way to count words
add info on compilation