<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update_one_time_key_counts(self, counts):
 """Update data on one-time keys count and upload new ones if necessary. Args: counts (dict):
 Counts of keys currently on the HS for each key type. """

        self.one_time_keys_manager.server_counts = counts
        if self.one_time_keys_manager.should_upload():
            logger.info('Uploading new one-time keys.')
            self.upload_one_time_keys()