Remove bad options from count queries