Quantification learning with deep neural networks