cabinet: get available boxes number