Passing test of count elements in stack with 5