Strange -- the string module definitely does define a count()
function. Perhaps your Lib/string.py has been truncated, or it hasn't
been converted from Unix LF format to DOS/Windows CR-LF format (if
you're using a non-Unix platform)?
--Guido van Rossum, CWI, Amsterdam <mailto:Guido.van.Rossum@cwi.nl>
<http://www.cwi.nl/cwi/people/Guido.van.Rossum.html>