Get number of entries in properties file apache commons

I’m creating a list of IP address’ to ping in which a user can add to the list which is then saved to a properties file in the form of site.name1 = … site.name2 = … Currently I have a for loop with a fixed amount, is there a way to get the number of […]