Call Couter in Asterisk

I want to find out how many calls/period(day/veek/mooth) that has been made and how many registred users there are in an PBX. How are the couterns stored (in an database ?) I guess that since it are displayed in a graph in "system info. I want to use/export the information to display it in an Joomla (module) 3.x site.

/BR Ulf

you have to connect with the database and select from database and count the number that can display that in joolma.