In the range of numbers between 1 and 209, how many times will the digits of a number add to 8?

Extension
In the range of numbers between 1 and x, how many times will the digits of a number add to 8? Give your answer in terms of x.

(Source: Adapted from Mathematics Teaching in the Middle School, Nov-Dec 1996)