fixed positional argument counting of associated function

Positional argument counting failed for session commands overriding
execute method by themselves.