Python's string count function doesn't use regex
<p>when trying to count all letters in a string using the count function and the regex [A-Za-z], it returns a a value of zero.</p>

<p>For instance:</p>

<pre><code>string="Hi, everybody. Let's dance!"

string.count('[A-Za-z]') ## prints 0
</code></pre>

<p>any suggestions?</p>

<p>Because that's not how count works,look at this link <a href="https://www.tutorialspoint.com/python/string_count.htm" rel="nofollow">count</a></p>

<p>In that statement you are telling how much substrings of '[A-Za-z]' are in string 
if you want to count all the letters in a string use len()</p>

python regex python-2.7 function