count  string frequences in text