Bid to a number of tricks equal to the number of trumps you and your partner hold (and no higher) in a competitive auction.
Thus, if with an eight-card fit, a pair is safe to bid to the two level but are unsafe to go to the three level.