Canonical quantization and the statistical entropy of the Schwarzschild black hole