Characterizing the sample complexity of private learners