fix bug: $count not use $filter.