Simple word occurrence counter