Calculates the size of input netlist