Is it possible to add in the function on page below -
PHP5 calculate IPv6 range from cidr prefix?
that it additional return number of ip addresses/hosts in CIDR also: