Preliminary Exam CSAT February 02

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