Added tests for count($result)