You can also use sessionStorage (or localStorage) to remember the click.
Every time the page loads, first check the storage to check if the user clicked. If so, #count is removed.
When the user clicks #notif, remove the #count element, and save the information into the storage so that next time the page is load it can be removed again.
sessionStorage will save the information locally while the browser window or tab is open. localStorage would save it permanently, until explicitely deleted.
In this question you have a nice discussion on the differences between localStorage, sessionStorage, cookies and session: What is the difference between localStorage, sessionStorage, session and cookies?
In your case, I think the most appropriate solution is sessionStorage (or localStorage depending on how persistant you want the information), as there is no need to send this information to the server.
<html>
<head>
<script
src="https://code.jquery.com/jquery-3.1.1.min.js"
integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
crossorigin="anonymous"></script>
</head>
<body>
<button id='notif'> removeCount</button>
<div id="count">
This should be removed.
</div>
<script>
window.onload = function() {
if (window.sessionStorage && window.sessionStorage.getItem('removeCount') == 'true' ) {
$("#count").remove();
}
$('#notif').click( function() {
if (window.sessionStorage) {
window.sessionStorage.setItem('removeCount', 'true');
$("#count").remove();
}
});
}
</script>
</body>
</html>