fixed bug in count_territory