Counting bridges