# Pipe operator | can be applied to block of code

for a in 2 1 3 4 5;
do
  echo $a
done | wc -l