If you have a list of clients why not use len() instead of counting? i.e. (cut & pasted from a script)...
clients = await aiomeraki.networks.getNetworkClients(net_id, timespan=t, perPage=1000, total_pages="all")
...then... len(clients) ...will give you the number of clients seen in that timespan.