added counter
added counter