wmadec: Kill static variable frame_count.