Noob help

I have a number on the home page of my site that I've just been updating manually. What I'd REALLY like is for it to query the DB and get the number of forms filled out from the cformsII plugin that has a form on the sidebar of every page.

Can someone point me in the right direction on how to go about embedding this query in my homepage?