Count lattice paths