A window washer earns $4 per window. Which equation represents the relationship between his total earnings and the number of windows he washes?
A.total earnings = number of windows washed + 4
B.number of windows washed = total earnings + 4
C.4 = number of windows washed × total earnings
D.total earnings = 4 × number of windows washed