Objective mesh term counts properly updating on change.

This tested well on all machine's but one, and we think it was a problem with that machine's js settings. Fixes #666.