Automatic CD3, CD4 and CD8 staining quantification in whole slides was useful to distinguish EoE from GERD biopsies, and it may be at least as useful as manual counts in the diagnosis and follow-up of eosinophilic oesophagitis. Here, CD4 is linked to gastroesophageal reflux disease.