The morphosyntax of number systems: a cross-linguistic study