Render average and count in browser