How would I go about counting the number of consonants in a word? python
<p>In python, how would I go about counting the number of consonants in a word? I realize there are a couple different ways to do this, but I think my way of choice would be to analyze each letter of a word and add to a counter when I encounter a consonant.  I just can't figure out how to implement it.</p>

<p>Something starting with this?</p>

<pre><code>count = 0
consonant = 'astringofconsonants'
if consonant in string[0]:
    count += 1
</code></pre>
