BUG fix - issue with reading of parameter files when there are multiple files with varying numbers of optional parameters - error in counter use