TextSearch allows to count the number of occurrences of a word in a text. You can use this gem to search word inside text.
Davide Santangelo
MIT