select date_trunc('month', starttime) as month, count(*)
from cd.bookings
group by month
order by month
This one is a fairly simple reuse of concepts we've seen before. We simply count the number of bookings, and aggregate by the booking's start time, truncated to the month.