---
title: numberOfArguments
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsmethodsignature/numberofarguments
---

# numberOfArguments

The number of arguments recorded in the receiver.

## Declaration

```occ
@property (readonly) NSUInteger numberOfArguments;
```

## Discussion

Discussion There are always at least two arguments, because an NSMethodSignature object includes the implicit arguments self and _cmd, which are the first two arguments passed to every method implementation.

## See Also

### Getting Information on Argument Types

- [getArgumentTypeAtIndex:](foundation/nsmethodsignature/getargumenttypeatindex:.md)
- [frameLength](foundation/nsmethodsignature/framelength.md)
