add new util method count for counting specific substring