AutoEnRichness: A hybrid empirical and analytical approach for estimating the richness of galaxy clusters