I am having a cart icon which looks like this:
This is an SVG image that I am referencing using the below code:
<Nav.Link as={Link} to="/cart" className="pr-0">
<Image src={cartIcon} className="nav-icon"></Image>
</Nav.Link>
I am implementing dynamic add to cart feature and this would require to add number of products added to cart on the icon. The icon should more or less look like the below image:
This is what I have tried so far:
<Nav.Link as={Link} to="/cart" className="pr-0">
<Image src={cartIcon} className="nav-icon"></Image>
<Count> {0}</Count>
</Nav.Link>
const Count = styled.span`
-moz-border-radius: 20px;
border-radius: 20px;
border: solid black;
background-color:lightgrey;
color:black;
padding-left:3px;
padding-right:7px;
padding-top:3px;
padding-bottom:3px;
font-size:1.1em;
`;
And this is the output I am getting:
Is it possible to place this Span on top of the Cart Icon considering it is an SVG file?

