Added feature to return the number of incorrect testcases - to be used for competition problems