simplify recordcount checks