Returned workgroups number calculation.