No, you can know the length of the list and still only process it once. The two things aren't related at all.
In reply to Re^3: tree command by RichardK in thread tree command by Skeeve