Thanks for the clarification, @jatin
@rgd, you need to hook your main() function as you plan on printing the views count at the end of page and I am assuming just above footer. Here is some sample code:
function main() {
//print only on quesion pages
if ($this->template == "question") {
qa_html_theme_base::main();
$viewcount = $this->content["q_view"]["views_raw"];
$timetext = $viewcount == 1 ? "time." : "times.";
$this->output('<div class="qa-above-footer-stats" style="height: 20px; width:200px;">');
$this->output("This question was viewed ".$viewcount." ".$timetext);
$this->output('</div>');
} else {
qa_html_theme_base::main();
}
}
Add above in your theme's qa-theme.php file. Take care about over-writing functions. Lemme know if this helped.