You can do this quite easily using ‘Show/Hide’ interactions. Group the elements that make up your notification badge, give them a name, then hide them (the eye symbol in the toolbar). Then add an interaction to the ‘Add to cart’ button that will show the badge.
Optionally, you could increment the number on the button using this method. If you’re new to Axure, I recommend this video series.