An application of number theory over function fields to combinatorics