Added function Subnet.numHosts()

Added, tested, and documented a function for calculating the number of
usable IPs in a subnet.