added counter for each 10000