how many different key combinations are there?
Those mathematic possibilities are called key bittings. There are only so many ways you can arrange the pins inside the lock, or the cuts on the key in order to get the maximum number of bittings possible. Most common locks only offer a few thousand bittings in a simple masterkey system.