It was from naked gun. (first one i think)

Franck walks into the doctors and the receptionist says to take a number and he says 6, or is that already taken, does it have to be between 1 and 10?

I thought that was hilarious.