Add count condition