Walk algebras, distinguished subexpressions, and point counting in Kac-Moody flag varieties