On differentially private mechanisms for count-range queries and their applications