app for finding words frequencies in a paragraph in php