The loan signing from Chelsea netted as a substitute in the victory over Charlton Athletic last weekend and was at it again in Lancashire to snatch Derby a point.
His strike partner Jordan Rhodes was the provider as he charged down the left wing and crossed for Gestede to head home from six yards for his third goal in his last five Championship games.
It was two substitutes who helped Derby come back into the contest, as Will Hughes, left on the bench for the first time this season, beat Paul Robinson with a clever chip that came back off the crossbar.
Highly-rated England Under-21 international Hughes continued to be County's biggest threat as he came within inches of connecting with a cross from Simon Dawkins at the near post.
Connor Sammon also came close as Derby applied late pressure, which was converted into an equaliser by Bamford, who controlled the ball on the edge of the box and bent past Robinson from 20 yards.