Exposed method in Process to get event counts of specific types.

Review: https://reviews.apache.org/r/22756
Exposed MessageEvent queue size from Master/Scheduler.

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