How to Hide W3Counter Free Web Stats Admin Menus

function plt_hide_blog_stats_by_w3counter_menus() {
	//Hide the "Dashboard → W3Counter Stats" menu.
	remove_submenu_page('index.php', 'w3counter-stats-display');
	//Hide the "Settings → W3Counter" menu.
	remove_submenu_page('options-general.php', 'w3counter-config');
}

add_action('admin_menu', 'plt_hide_blog_stats_by_w3counter_menus', 11);

Where do I put this code?