Drupal Views count results

Here's a cool trick, drop this code in your views display header to show how many rows were returned by the query (be sure to use the PHP code input format):

There are currently <?php
$view = views_get_current_view();
echo $view->total_rows; ?> records displayed.

I imagine that the views_get_current_view() function can come in handy for other purposes.

Very cool trick :-)

 

Excellent, save my life :)