merged all count scripts into one file