You can refresh a section of the page like a count from the database without a page refresh using AJAX and the Behavior: Webassist->Framework->Load Plugin to Div.
Just create a separate .php page that shows the count from the database and then you can load or reload that page into a div when you need to without a page refresh.