Moved the result tile counter to the correct scope.