The number of possible melodies and variations is mathematically infinite BUT "that the human ear finds pleasing" is the caveat.