The dice you want to roll and keep are the Hole Out dice. These equal 0 strokes. The other dice have a number on them that represents their stroke value (i.e. 2 = 2 strokes).
Scoring the hole is simple. Add the number of rolls taken plus the strokes showing on the dice. You can stop anytime after the first roll.
After each roll set aside the dice you want to keep and re-roll the dice you don’t want. Remember that each roll counts as a stroke in addition to the values showing on the dice.