A teacher uses a strong slingshot to release an object from the top of a school high in the air. The function a(t)=-16t^2+128t+50 gives the approximate altitude, in feet, of the object t seconds after it is released. How long will it be before the object hits the ground? Round to the nearest second.