added method to get size of stack