You had 14 outs on the flop (and 17 on any turn that doesn't give him a full house) against one of the few hands that had you beat. Clearly you played it fine.