counts the amount of occurences of a known substring within a string.. function str_count(str, substring) ':: count the occurences of a substring within a string str_count = UBound(split(Lcase(str), substring)) end function