more generic wordsCount
delete log file