# How to get the variable numbers for a julia function

**URL:** https://discourse.julialang.org/t/how-to-get-the-variable-numbers-for-a-julia-function/36682
**Category:** General Usage
**Created:** [March 29, 2020, 4:17pm UTC](https://discourse.julialang.org/t/how-to-get-the-variable-numbers-for-a-julia-function/36682 "2020-03-29T16:17:44Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![mbaz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbaz/32/17295_2.png) [@mbaz](https://discourse.julialang.org/u/mbaz)
#### Post date: [March 29, 2020, 4:47pm UTC](https://discourse.julialang.org/t/how-to-get-the-variable-numbers-for-a-julia-function/36682/2 "2020-03-29T16:47:06Z")

</div>

You can do something like this:

```julia
julia> function f(args...)
           return length(args)
       end
f (generic function with 1 method)

julia> f(1,2,3)
3

```

---

_[View the full topic](https://discourse.julialang.org/t/how-to-get-the-variable-numbers-for-a-julia-function/36682)._
