How to Hide the "Post View Counter" Admin Menu

function plt_hide_post_view_count_menus() {
	//Hide the "Settings → Post View Counter" menu.
	remove_submenu_page('options-general.php', 'post-view-counter-option');
}

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

Where do I put this code?