Level number counting