Adds onBeforeCount for Active Records, fixes #1353
phpdoc correction for onbeforecount #1353
docstring fixes #1353
Merge pull request #1823 branch '1353-on-before-count' of https://github.com/jakob-stoeck/yii into jakob-stoeck-1353-on-before-count

* '1353-on-before-count' of https://github.com/jakob-stoeck/yii:
  docstring fixes #1353
  phpdoc correction for onbeforecount #1353
  Adds onBeforeCount for Active Records, fixes #1353
cleanup after #1823