CLOUDSTACK-5303: fix incorrect resource count (snapshot, secondary_storage
fix incorrect capacity issue