One of the most common issues when using Ajax Cart (stay on current page when adding to cart) is the one with cart counter not being updated
Hide Cart Count When The Cart Is Empty
When the cart is empty, seeing number 0 next to it is redundant, and with this implementation, we can make it hidden for a clean and professional