Counting countries in the patent data set