Why no increment of total_number_of_arguments ?  (You haven' t documented it, so there may be an "obvious" simple explanation, but I don't know it ...)