Working on total count sync with database.

Still in progress... just so you can see what I am doing.