counting args with cpp