<｜begin▁of▁sentence｜>### Instruction:
Given a graph with 10 nodes and 20 edges, can you create a Histogram object in igraph to calculate the degree distribution and print the bins with their ranges and counts?
### Response:
```python
from igraph import Graph
from igraph.statistics import Histogram

# Create a simple graph
g = Graph.Erdos_Renyi(n=10, m=20)

# Get the degree distribution of the graph
degrees = g.degree()

# Create a histogram for the degrees
histogram = Histogram(bin_width=1)
histogram.add_many(degrees)

# Generate the bins of the histogram
for bin_left, bin_right, num_elements in histogram.bins():
    print(f'Bin range: [{bin_left}, {bin_right}), Count: {num_elements}')
```
<|EOT|>
