Visualise data in front end with count api

if your frontend supports websockets you can use the realtime chat template i did it but with stock data