Keeps statuses of masters and counts only running masters