Result counting added