A probabilistic method for lattice path enumeration