internal/v4: implement meta/bundle-unit-count and meta/bundle-machine-count

As specified in the charm API document.