Count Substring Iterative/Recursive