On the $i^{th}$ impact, as ball comes down and hits, we can consider the very instant of first contact with the floor, while the ball is still a sphere and hasn’t started to deform yet.
It has a velocity of $v_{d,i}$, where $d$ is for downward and $i$ is the $i^{th}$ impact. Assuming little wind resistance and therefore that friction loss is from the ball not having a perfectly elastic collision with the floor:
$$v_{d,i+1} = v_{u,i}$$
We also know that it will rebound to:
$$h_{i+1}=0.6~ h_i$$
The height and potential energy reduce 40% each time.
Every time the ball hits, it’s surface is deformed. The displacement $d$ into the ball (ie how much closer to the floor than $r$ the $com$ of the ball gets) will not be linear, ie $F \neq -kx$. The exponent will be higher than $1$. For example it could be $F=-kx^2$
The energy imparted is:
$$E = mgh_i = \int_{0}^d F dx ~ =(\tfrac{1}{2}mv_{u,i}^2)$$
Although we won’t use the last expression. Each time $h$ and $E$ go down a factor of 0.6. Whenever we get to $h<d$, ball will not go high enough to leave the surface of the floor. This can be estimated by:
$$h_N = h_0 0.6^N ~,~ \text{until} ~ h<d$$
What’s needed now is the force for small displacements of a sphere onto a surface, when all the energy via work is imparted.
We could compress a ball and measure displacement vs force. We would seek the distance $d$ and condition where:
$$ \int_{-d}^0 F dx = mgd$$
Because work put into rebound from rest ($\int_{-d}^0 F dx$) equals the ending potential energy at the apex of ($mgd$). Because we have only rebounded a height equal to the displacement, the surface of the ball does not leave the ground and bouncing is over: We bounce until $h_N=d$.
Barring experiments to get that data, let’s just guess that it is $0.1r$ (the ball displaced a tenth of a radius and let go does not spring back enough to leave the floor surface). This guess will not affect results all that much.
If we start out $K$ diameters above the floor and drop it, then it will bounce until $h$ goes from $2Kr$ to $0.1r$
$$2Kr ~0.6^N = 0.1r \implies -N \ln(0.6) = \ln(20K)$$
The general equation would then be:
$$ N = -\frac{\ln(20K)}{\ln(0.6)} ~,~ \text{for }~ h_0 = KD$$
If we start at twenty diameters above the ground:
It will bounce Twelve Times ($-\tfrac{\ln400}{\ln0.6}$)
It may not seem like many bounces, but 40% loss per bounce is a lot. Finally, it is not that sensitive to our guess. Without an $F(x)$ measurement, even if the $0.1r$ is off by a factor of three, which I doubt (between $0.03r$ and $0.35r$), $N$ will only change by two. So 12 is a pretty good guess. (If instead of $20D$, the initial height is $\frac{20D}{0.6}$, it’ll increase by one bounce, and for $12D$, it’ll decrease by one, etc.)