Added JS for sum count