Preliminary Exam CSAT February 18

1. How many times will the digit '7' be written when listing the integers from 1 to 1000?