finally got save count working right