When evaluating count values, we need to unmark the cty value before passing the value for conversion into a go int value.