count_results_messages.py

What this script is for:
Count the occurrence of each message ID in the Resaults.csv file, and write it to a CSV file.
Count the occurrence of each type of WRN0002, and write it to a CSV file.

What the script does:
Script input:  1) Resaults.csv file.
               2) MessageId.csv file (comes from the data directory).

Script output: 1) A CSV file contains a count of all the different occurred messages.
               2) A CSV file contains a count of all the different types of WRN0002 messages.

step 1) The script counts for each different message ID in the input file how many times it occurs, and then finds the relevant message text for each message ID from the MessageId.csv input file and writes to the appropriate CSV file: 
"MSGID", "MSGTEXT", "Count"

step 2) The script counts for each different type of WRN0002 how many times it occurs, and then it writes to the appropriate CSV file: "Attribute_name#value", "Count"


Script usage:

Invoke the script by: 
       count_results_messages.py -i <Resaults_inputfile> <MessageId_inputfile> -o <output_allCount_file> <output_wrnCount_file>
      