<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def check(self, batch_size):
 """Returns True if the logging frequency has been met."""

        self.increment(batch_size)
        return self.unit_count >= self.config["log_train_every"]