added handling of unknown frequency counter state