.icon {
  position: relative;
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: whitesmoke;
  border: 1px solid silver;
}

.count {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  padding: 0 0.4rem;
  color: white;
  font-size: 0.75rem;
  background-color: tomato;
}
