Updates counter