count stuff in the browser