#141 forget to reset static local count