code: def CountClientPlatformsByLabel(self, day_buckets):
      
  
      def ExtractPlatform(client_info):
        return client_info.last_snapshot.knowledge_base.os
  
      return self._CountClientStatisticByLabel(day_buckets, ExtractPlatform)
docs: Computes client-activity stats for all client platforms in the DB.