Which statement is correct?

A. –5 cannot be written as a fraction, so it is not rational.
B. –5 is a rational number, but not an integer.
C. –5 is a counting number, so it is also a whole number.
D. –5 is an integer, but not a whole number.