ipCount function

Count number of IP addresses.