script fixed
added counter