Ann: Implemented chip counting