Removed masters Counters class and replaced it with normal Java Atomic i...

Counters is not a thread-safe class.  The edit log didn't get dependency counts since that was a different variable.

Deleted Counters and replaced all instances with AtomicLong or Integer.
What about with the ha logic? This method is called multiple times.  If you call this a second time without the loop you don't know if something happened under you.