Query for active practitioners in an organisation

We are using HAPI and have organisations with practitioners. Now we would like to know each month how many active practitioners we have within an organization. How would such query look like? It seems we cannot have one single query as we need to query separate profiles first.