Github Universe: Number of Developers from a country

How do I get the number of developers from a country say Nigeria on Github for research purposes.

There isn’t a good way to do this because people aren’t required to give a location or even give a real-world location in their profile. It’s simply a free-form text field. You’d have to simply read the text field and apply heuristics and guesses based on what you find in there.