A note on the class number of real quadratic fields