working on counter model