int countItem(IStr str, IStr item)
Counts the number of occurrences of the specified substring in the string.
int countItem(IStr str, char item)
Counts the number of occurrences of the specified character in the string.