Added v1 of the script to measure the muon rate