Yes, I think that it not only varies between languages, but it can vary within a language for different numerals. I think large numerals have a greater tendency to function as heads.
I think that the numeral is usually taken to be the head in English constructions like "hundreds/thousands/millions of beans", where the noun "beans" occurs inside of a prepositional phrase.
In other languages, there may be constructions where the noun takes a case that seems to function similarly to an "of" prepositional phrase in English. In Russian, I think the genitive case is involved, but it's a complicated topic that I don't know enough about to summarize.
English expressions like "three chickens" are tricky. In some ways, English numerals function similarly to articles. The indefinite article a(n) developed diachronically from one, and I've even seen some papers where it is argued that a(n) should be analyzed synchronically as a reduced form of the numeral one.* The definite article the is not derived from a numeral, but both numerals and articles can be categorized as taking a "determiner" function in a noun phrase.
The question of whether determiners or their associated nouns are heads (if determiners are the heads, it would technically be of a "determiner phrase" rather than of a "noun phrase") is a disputed topic, according to the Wikipedia article "Determiner phrase".
The section "Morphological dependencies" in that Wikipedia article mentions (although it doesn't provide any citations) that agreement with a noun can be taken to support an NP analysis over a DP analysis. English numerals don't show any agreement (although the determiners that/those and this/these do). But in other languages, a numeral may be a target for agreement in features like gender or case (or even, oddly enough, number: in Latin, the word for one, unus, has plural forms used with plural-only nouns). I think in such languages, it is usually assumed that the noun, which has the role of the controller, is the head.
Another complication in English: numerals can occur after determiners, which is a context where they typically could not be analyzed as having a determiner function. We can say "the three chickens", even though we can't say *"the my chickens"; one way of explaining that is to say that before a noun, my always functions as a determiner, but three doesn't always function as a determiner. But as with the NP vs. DP issue, I believe there are different approaches to analyzing the structure of expressions like "the three chickens". Some related posts: How to analyze an NP with two determiners? (Linguistics SE), One noun but two determiners? (ELU). According to Araucaria's answer to the second question, three in a phrase like "the three chickens" would function as a modifier.
*Here is a relevant passage from "On the Article in English", by David M. Perlmutter (1970):
If this is correct, the relationship between the definite article and the indefinite article in English is quite different from what has been generally supposed. Grammarians have worked on the assumption that NP's may bear either a definite or an indefinite article, and that the two constitute some sort of opposition. If the analysis given here is correct, however, the indefinite article is simply a numeral like all other numerals, and the occurrence or non-occurrence of the definite article is a completely independent phenomenon.
Edit: here are some articles related to this question that I found after writing this post, but that I haven't finished reading yet. If anyone gets around to reading them before me and finds more relevant information to put into an answer, please go ahead and make a post of your own.