diff -r 82fc797fb691 sites/all/modules/contrib/jcarousel/includes/jcarousel.views.inc
--- a/sites/all/modules/contrib/jcarousel/includes/jcarousel.views.inc	Mon Nov 05 18:52:17 2012 +0100
+++ b/sites/all/modules/contrib/jcarousel/includes/jcarousel.views.inc	Mon Nov 05 18:57:20 2012 +0100
@@ -142,9 +142,15 @@
     $options['scroll'] = $options['visible'];
   }
 
-  // Get the total number of items in this view.
-  $count_query = $view->build_info['count_query']->countQuery();
-  $count = $count_query->execute()->fetchField();
+  // Add support for xml views backend.
+  if ($view->base_table == 'xml') {
+  	$count = $view->total_rows;
+  }
+  else {
+	// Get the total number of items in this view.
+	$count_query = $view->build_info['count_query']->countQuery();
+	$count = $count_query->execute()->fetchField();
+  }
 
   // Views may already populate total_rows later, but since we've already
   // generated this value, we might as well make it available.

