Calculation of types and number of Elements