Py2.6 fix for .count().