simple word occurrences sql statement