Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
If you are trying to find out how many users are associated to an AP, this example shows how to display all client devices associated with the access point: