counting territory