Add sampling count feature to server.

The program now prints how many times a hot goal sample has been counted.