Fixing counts and charts.

These were broken some time ago, after the CSS chnages, I think. They
seem to be working well again.