Marginal_y = rug in numbers instead of lines aside

Is there also a way to like count the data points and show their amount in terms of numbers instead or in parallel to only show some lines at the side?

https://pic3.zhimg.com/80/v2-d6b0884c2140e3ec837722a73db5c792_1440w.webp