semantic: Add count parameter to function scope.