title: How to display total count in geom_text
body: <p>I have been trying to produce a count of Booking made and no booking made. Below is the code that I have used. It is giving me full count (sum) across all days. How can I amend my code to give me count across stacked graph that is. I want count of booking made and count of non booking made.</p>
  
  <pre><code>p &lt;- ggplot(swiss,aes(x=as.factor(No.of.days.request.took)))
  p + geom_bar(aes(fill=as.factor(Booking_new))) + 
      geom_text(aes(label=..count..),
                vjust=1,stat='count',
                position = "stack")
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/fto6K.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fto6K.png" alt="enter image description here"></a></p>