Implemented counting frequency of terms functionality
Log terms frequencies in the end