Fix #7 local count not updated after save.