counter with model commit