private function incrementCounter(int $tryCounter, UniqueValue $value, int $limit) : int { ++$tryCounter; if ($tryCounter > $limit) { throw UniqueValueGenerationLimitReachedExceptionFactory::create($value, $limit); } return $tryCounter; }