Merge pull request #3669 from yaoshanliang/develop

count_all_results() with $this->reset_select()