Question: I have multiple test cases and I want to write a common method which can count all fail or pass test case and print the total pass and fail test case at the end of execution.

Answer: 
Instead of using a Class to count the total pass and fail cases, you can implement a method like this:

```
int pass=0;
int fail=0;
for(int i=0;i<testCasescount;i++)
{
  //read the input using Console.ReadLine();
  //check whether the test case is a pass or fail and appropriately increment the counter
}
//executed after the for loop i.e. all the test cases 
Console.WriteLine(pass);
Console.WriteLine(fail);

```
Add 2 global parameters with value 0 (varSuccess, varFail).
Everytime you validate anything depending on the outcome just add to the either value. When test run has finished do what ever you want with those values (eg. write them to the report file, console etc).