Returns the number of ports on the given interface. The interface must be initialized before the port count can be returned.
return port count for.
Returns Port count for interface -1 for uninitialized interface