<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def __log_number_of_constants(self):
 """ Logs the number of constants generated. """

        n_id = len(self._labels)
        n_widths = len(self._constants) - n_id

        self._io.writeln('')
        self._io.text('Number of constants based on column widths: {0}'.format(n_widths))
        self._io.text('Number of constants based on database IDs : {0}'.format(n_id))