authorId()); $author = $this->authors->ofId($authorId); if (null === $author) { throw AuthorDoesNotExist::withAuthorIdOf($authorId); } $followersCount = $this->followers->ofAuthorId($authorId)?->followers() ?? 0; // Other option would be with a counter method in the Repository // $followersCount = $this->followers->countOfAuthorId($authorId)); return new CountFollowersResponse( authorId: $authorId->toString(), authorUsername: $author->userName()->userName(), numberOfFollowers: $followersCount ); } } //end-snippet