10
![Meta Stack Exchange](//meta.stackexchange.com/content/Sites/stackexchangemeta/img/apple-touch-icon.png)
Exactly what it says on the tin: the 40 top tags are the 40 first elements in the tag list. That list is ordered by the number of questions decorated with each tag, descending.
Also note that the Generalist badge won't be available until all of the 40 top tags decorate 200 questions or more.