private static int CountTrees(this char[,] map, int right, int down) { return(map.Descend(right, down).Count(x => x == '#')); }