Any time you have a sizeable python project with many *.py source files, you can use this script to count how many classes defined.
import re, sys
from os import walk
printed={}
for (path, dirs, files) in walk("c:\\py") :
for filename in files :
if not re.search("\.py$",filename) : continue
if not printed.has_key(path):
print " path = " + path
printed[path] = True
for line in open (path+'\\'+filename) :
#if re.search('^\s*def ', line) : print line,
#if re.search('^\s*class\s', line) : print filename + ':\t' + line,
if re.search('^\s*try\s', line) : print filename + ':\t' + line,
#if re.search('@', line) : print filename + ':\t' + line,
import re, sys
from os import walk
printed={}
for (path, dirs, files) in walk("c:\\py") :
for filename in files :
if not re.search("\.py$",filename) : continue
if not printed.has_key(path):
print " path = " + path
printed[path] = True
for line in open (path+'\\'+filename) :
#if re.search('^\s*def ', line) : print line,
#if re.search('^\s*class\s', line) : print filename + ':\t' + line,
if re.search('^\s*try\s', line) : print filename + ':\t' + line,
#if re.search('@', line) : print filename + ':\t' + line,