def get_flag_count(self, project_key: str) -> int:
        """operationId: getFeatureFlags

        Request minimal info and return the total flag count.
        """
        endpoint = f"/api/v2/flags/{project_key}"
        flags: ld_types.FeatureFlags = self._get_json_response(
            endpoint=endpoint,
            params={"limit": 1},
        )
        return flags["totalCount"]
operationId: getFeatureFlags

        Request minimal info and return the total flag count.
        
api/integrations/launch_darkly/client.py