added cross origin fix for count and total time