Fixed correct counter