The number of Goldbach representations of an integer