count occurence of search result in given string