Repeat Group Query Errors

I am creating a Repeat Group and I am getting this error, what could be wrong?

@Roba

Functions are not evaluated in the Repeat Count field. You could solve this problem by creating a hidden value with a Calculate Condition of count-selected(Subcounty) and then use the hidden value in the Repeat Count field