Added option to disable counter caches updating.
Closes #3109