'Umpty' first appeared as military slang 100 years ago, meaning an indefinite - but large - number. It was used particularly in the Royal Navy in much the same way as 'x' is used in mathematics to represent an unknown quantity. 'Umpteenth' came to be a sort of adjectival form of the word, with obvious connections with thirteenth, fourteenth etc.