As you know, there is an limitation of vlan-port instance (logical port) on certain platform. Here is the fomula to get that info.
Total number of vlan-port instance = (# of non-ATM trunks * # of active vlans on the trunk) + 2*(# of ATM trunks * # of active vlans on the trunk) + # of non-trunking ports.