add StringUtil.count, inspired by Apache Commons Lang StringUtils#countMatches and Python's str.count(substr)