Why does khamsatun take -ah in “forty-five men”?

Number Nouns: Rules from One to One Thousand