Count bins and plot indexes.