Initial commit of flipcounter script