Cache document type counts