add changelog and documentation for adding an optional parameter to ``count_all_results()``
diff --git a/system/database/DB_query_builder.php b/system/database/DB_query_builder.php
index 3d4a857..facaf0e 100644
--- a/system/database/DB_query_builder.php
+++ b/system/database/DB_query_builder.php
@@ -1353,9 +1353,10 @@
 	 * returned by an Query Builder query.
 	 *
 	 * @param	string
+	 * @param	bool	TRUE: resets QB values; FALSE: leave QB vaules alone
 	 * @return	int
 	 */
-	public function count_all_results($table = '', $reset = true)
+	public function count_all_results($table = '', $reset = TRUE)
 	{
 		if ($table !== '')
 		{
@@ -1367,10 +1368,10 @@
 			? $this->query($this->_count_string.$this->protect_identifiers('numrows')."\nFROM (\n".$this->_compile_select()."\n) CI_count_all_results")
 			: $this->query($this->_compile_select($this->_count_string.$this->protect_identifiers('numrows')));
 
-                if($reset)
-                {
-		        $this->_reset_select();
-                }
+		if($reset === TRUE)
+		{
+		    $this->_reset_select();
+		}
 
 		if ($result->num_rows() === 0)
 		{