changed the plot of galaxy count to required form