I want to know that is it possible that maximum number of hosts in a network can restrict class of ip address that can be used for network
I have to admit I can not make sense of that sentence. So I just offer this Subnet Calculator to find out hosts in a subnet etc. things about subnets, http://www.subnet-calculator.com/ There are several such calculators, slightly different. Find them using Internet Search Engines.