The very high number of hydrocarbons is due to the properties of tetra valency, catenation, and small size of the carbon atoms.
Tetra valency= carbon can form 4 bonds per molecule
Size= Carbon's long size means it is relatively stable and can form long chains.
Catenation= Carbon innately has an ability to form immensely long chains.