How would I count the number of rows returned from an sql query using wordpress?
<p>I am currently using:</p>

<pre><code>$dup_donor_count = count($wpdb-&gt;get_results("SELECT * FROM ".$table_name." WHERE Donor = '".$donor."'"));
</code></pre>

<p>which is giving me back '61', the total number of elements in the entire array, the array is an array of std objects, each of which is a row corresponding to my specified query, namely, where the Donor column is equal to 'Dave'.</p>

<p>There are 6 instances where this is true, how would I return this number (6) and not 61?</p>

<p>This is driving me nuts.</p>