diff --git a/C#/Datastructures/Stack/Stack.cs b/C#/Datastructures/Stack/Stack.cs index 8d845fe..8472380 100644 --- a/C#/Datastructures/Stack/Stack.cs +++ b/C#/Datastructures/Stack/Stack.cs @@ -55,5 +55,10 @@ namespace C_.Datastructures.Stack } return default; } + + public int GetCount() + {//Return the number of items in the list + return Count; + } } } \ No newline at end of file