How to get Views Total number of records in Page.tpl.php file. (Before Views rendered) See this image for more understanding. 

I want to fetch Views total number of records in page.tpl.php before views.tpl called. Is it possible to fetch that row total  before views rendered?
I am also using contextual filter for this view. Views have page type display.

I have also used module views_record_count. but this will print total number of records on Views header or footer. (Not outside of views)
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;