setHandler into views_pre_render OR count results in views_pre_render
Found an alternative solution, by using hook_views_pre_render and $view-&gt;attachment_after

$view-&gt;attachment_after = array('#markup' =&gt; '&lt;a href="/" title="Title" class="button"&gt;Button&lt;/a&gt;');