Range Counting with Distinct Constraints. - Munro, J. Ian; Nekrich, Yakov; Thankachan, Sharma V. (2015)