結果 : how to find length of stack in python