I don’t know why that code didn’t work for you. I copy that code and it work exactly as I expected. You should double check your case, did you unset $args
variable before, or you can use another name ($agrs2 for example).
Another problem in you question is: if pad_counts
doesn’t work, you will get 1 not 3.