Пример #1
0
    public int Count()
    {
        int total = 1;

        if (left != null)
        {
            total += left.Count();
        }
        if (right != null)
        {
            total += right.Count();
        }
        return(total);
    }