Fixed the density plot by making it one entry per time interval so that the total count per time interval is correct.