感感单单

count =0
for i in range (1,2020):
    for j in str(i):
        if j == '9':
            count+=1
            break
print(count)