# Getting number of subscribers There's an easy way to display number of clients watching the stream. You need to Set up statistics page at location `/stat` ```sh location /stat { rtmp_stat all; allow 127.0.0.1; } ``` Create a simple xsl stylesheet `nclients.xsl` extracting number of stream subscribers ```xsl ``` Set up a location returning number of suscribers ```sh location /nclients { proxy_pass http://127.0.0.1/stat; xslt_stylesheet /www/nclients.xsl app='$arg_app' name='$arg_name'; add_header Refresh "3; $request_uri"; } ``` Use HTTP request `http://myserver.com/nclients?app=myapp&name=mystream` to get the number of stream subscribers. This number will be automatically refreshed every 3 seconds when opened in browser or iframe.