add calc...Count() and change y range
Correct y and decY range

Can be proved that x + y <= m + 1 and we should only consider the
ladder shape when decX + decY <= m + 1