Complete substringCount challenge