Date counts slip because 'days apart' and 'day number' differ by one. D-day notation, anniversaries, Korea's Civil Act periods, age and calculator checks.
There are really two different questions when counting dates. One is how far apart two dates are; the other is which day number today is. January 1 and January 10 are nine days apart, but if January 1 is counted as the first day, January 10 is day 10.