why you set `$con = null` ?
this should be `return parent::doCount($con)`