The script counts unique values in a file based on the pattern given