> For the complete documentation index, see [llms.txt](https://docs.r.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.r.xyz/glider-ide/api/callables/callables.with_arg_count.md).

# Callables.with\_arg\_count()

`with_arg_count(`*`arg_count: int`*`) →` [`Callables`](/glider-ide/api/callables.md)

Adds a filter to get callables having specified argument count. Returns a filtered [Callables](/glider-ide/api/callables.md) child object. This method can be called on all [Callables](/glider-ide/api/callables.md) child classes: [Functions](/glider-ide/api/functions.md) and [Modifiers](/glider-ide/api/modifiers.md).

### Functions Example

```python
from glider import *

def query():
  # Retrieve the functions that have 12 arguments
  functions = Functions().with_arg_count(12).exec(100)

  # Return the first five functions
  return functions[:5]
```

Output:

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2F4t2vhlHJDYGod2GscIsy%2Fimage.png?alt=media&amp;token=3db006c7-0e88-4caf-8759-8702f1d15280" alt=""><figcaption></figcaption></figure>

### Modifiers Example

```python
from glider import *

def query():
  # Retrieve the modifiers that have 5 arguments
  modifiers = Modifiers().with_arg_count(5).exec(100)

  # Return the first five modifiers
  return modifiers[:5]
```

Output:

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FHCASC8zFvfU88pjW2MIU%2Fimage.png?alt=media&amp;token=dd519b41-c651-4593-9f5f-a2359671de69" alt=""><figcaption></figcaption></figure>
