add timestamp to Counter, fix bug in proto file