added counter and date