add public size() method to StackDataBuffer