Count notifications in case a connected user go on the sign page + avoid loading some js if user is not authenticated