Added local counter thread in client