Update frequency array