This is potentially expensive - since you are walking a potentially large array in memory.  I think you could say

    chkCount = numRows - clearedRows;

instead.