x86: check boundary in count setup resource