added support for ref / region counts