I'm not altogether clear on the question. First, I assume you are asking about inflection points between two adjacent critical points - otherwise a polynomial can have as many critical points as you like, and as many inflection points as you like between the first and the last critical point. Second (I assume this is what you mean but I think it is worth emphasizing), horizontal inflection points are critical points, so I assume you are basically interested in non-horizontal inflection points.
Having done that, critical points occur when $f'(x)=0$, and non-horizontal inflection points occur when $f'(x)\ne0$ and $f''(x)=0$.
Applying Rolle's Theorem to $f'$: if $f'(a)=f'(b)=0$, then there exists $c$ in $(a,b)$ such that $f''(c)=0$. So there is at least one inflection point between any two critical points.
Next, suppose that $f$ has degree $n$. Then $f''$ has degree $n-2$, so it has up to $n-2$ real zeros and hence up to $n-2$ inflection points. It is possible for all of these to lie between adjacent critical points of $f$. So there is no overall maximum: there can be as many inflection points as you like between two adjacent critical points. If you want an answer in terms of the degree of the polynomial, the maximum is the degree minus $2$.
An example with $n=5$: take $f(x)=3x^5-30x^4+110x^3-180x^2$. Then you can easily check that $f'(x)=0$ for $x=0$ and $x=4$ only; and $f''(x)=0$ for $x=1,2,3$.