private function getClientCount(ClientRepository $clientRepo, Authorization $entity)
 {
     $counts = $clientRepo->getCountPerson($entity->getPerson(), $entity->getClient()->getId());
     if (count($counts) > 0) {
         $count = $counts[0]['qty'];
     } else {
         $count = 0;
     }
     if (!is_int($count)) {
         $count = 0;
     }
     return $count;
 }