The Global Citizenship Observatory, an international research network dedicated to citizenship laws and electoral rights, has created a dataset of citizenship laws around the world. The dataset contains the procedure for acquiring or losing citizenship, conditions for citizenship, and citizenship laws for 190 countries. According to the dataset, there are 28 methods of acquiring citizenship and 15 methods of losing citizenship.
Image credit: Flickr user Penn State