script which parses MAST XML to count-matrix.