Nearly Starobinsky inflation from modified gravity