Added statistics counting