Added mode based counter