Added message counters for all message types in Master.

Review: https://reviews.apache.org/r/21399