title: Yii Count Number of rows affected
body: <p>How I can get the number of affected rows in YII , i found </p>
  
  <pre><code>countBySql($sql,$params=array())
  </code></pre>
  
  <p>But countBySql() requires sql query &amp; parameters, meanwhile deleteAll() just requires only condition and parameters. </p>
  
  <pre><code>deleteAll(mixed $condition='', array $params=array ( ))
  </code></pre>
  
  <p>So how can i get Number of rows affected in Yii after rows are delete.</p>
  
  <p>thanks in advance!</p>