Added Method for calulcation of total number of components