Statistical mechanics of a two-dimensional black hole