Print count values on an histogram with histnorm='percent'

Hi! I have been struggling several hours with the histograms plot. I’m trying to build a histogram with histnorm='percent' but that in the hoverinfo (and also printed as text if possible) shows the count value. Is this even possible?

import as px
df =
fig = px.histogram(df, x="total_bill", histnorm='percent')
fig.update_traces(hovertemplate='count=%{count} <br>percent = %{y:.2f}<extra>%{x}</extra>')

I tried all kind of things. I just leave as an example one that obviously didn’t work because %{count} doesn’t print the actual count, it just renders as %{count}.

Any help will be great! Thanks!