Example #1
0
        public int Count()
        {
            if (IsEmpty())
            {
                return 0;
            }
            int counter = 0;
            GenericNode scannerNode = head;
            while (scannerNode.HasNext())
            {
                scannerNode = scannerNode.next;
                counter++;
            }

            return counter+1;
            
        }