How to get Views Total number of records in Page.tpl.php file. (Before Views rendered)
You could use this code to print the count.

&lt;?php

$view = views_get_view( 'test' );
$view-&gt;set_display('block');
$view-&gt;set_arguments( array( 1, 2, 3 ) );
$view-&gt;execute();
$count = count( $view-&gt;result );
print $count;

?&gt;