Added counter to process results