inline function
count, don't return