How do you count strings in an increment? : <p>I have an array of number which I changed to string</p>

<pre><code>a="1423"
astr=str(a)
aspl=list(astr)
</code></pre>

<p>I should have ['1', '4', '2', '3'].
I wanted to count how many 1~9 there are in the array so that 
1 = 1 time(s), 2 = 1 time(s) ... 5 = 0 time(s), 6 = 0 time(s)...</p>

<p>My solution to this was</p>

<pre><code>r=0
for r &gt; 11:
    b = aspl.count(r)
</code></pre>

<p>but since it is a string, this method does not work.
I tried using </p>

<pre><code>    b = aspl.count('r')
</code></pre>

<p>then as you might have guessed, it's only looking for r.
So how would you go about this?</p>

<p>Thanks in advance.</p>
