When declaring at no-trump and determining how many tricks to hold up, subtract the number of cards that you and the dummy hold in the suit led from 7. Hold up that many times.

Say spades are led and you have A 7 6 in your hand, and 10 9 on the board, a total of five cards.

Therefore hold up 7-5 = twice and take your Ace on the third trick.