added singelton for counter