Add routine for counting boards in search