If we can reach maze [ i ] [ j ] from maze [ i ] [ j - 1 ] then increment count .
if ( maze [ i ] [ j - 1 ] > 0 ) : NEW_LINE INDENT maze [ i ] [ j ] = ( maze [ i ] [ j ] + maze [ i ] [ j - 1 ] ) NEW_LINE DEDENT