The Hilbert function of the Ratliff-Rush filtration