adding save of counts at the bottom.