Counter for models, controllers

Hi,

Is there any way to see how many classes / methods you are using in your Yii applications?


echo 'Model classes: '

     .exec('grep -rc ^class '.Yii::app()->getBasePath().'/models/ | grep -c [123456789]')

     .'<br />';

echo 'Controller classes: '

     .exec('grep -rc ^class '.Yii::app()->getBasePath().'/controllers/ | grep -c [123456789]')

     .'<br />';

Is a potential start of one approach you might take, provided you are operating on a linux system.