Replace hardcoded count for number of searches with command line argument