Added a static method to reset the value of count.