Consider the following:
He saw trucks.
He saw the truck.
He saw a truck.
He saw one truck.
He saw two trucks.
He saw several trucks.
He saw many trucks.
Notice that in these contexts, the numbers do not describe an attribute of the truck or trucks, but function more like an article.
The modern term for such a role is determiner.
In other contexts numbers can be nouns.