starting recurse for counter