Prefix GROUP_BY key
Rename key 'jayps_search_count' in 'jayps_no_group_by'

$nb = MyModel::query(array(
    'where' => array(array('keywords', 'test')),
    'jayps_no_group_by' => true
))->count());