refactor: store amount of arguments of a method in RawMethod