getStackCount() is now public