(histogram: collections.Counter,
                          length: Union[int, float], bin_size: int)
Update a length histogram with length and bin_size.
Update a length histogram with length and bin_size.
Update a length histogram with length and bin_size .
def _update_length_counts(histogram: collections.Counter,
                          length: Union[int, float], bin_size: int):
  """Update a length histogram with length and bin_size."""
  if length == 0:
    histogram[0] += 1
  else:
    histogram[int(length / bin_size) + 1] += 1
def _update_length_counts ( histogram : collections . Counter , length : Union [ int , float ] , bin_size : int ) : if length == 0 : histogram [ 0 ] += 1 else : histogram [ int ( length / bin_size ) + 1 ] += 1