count from end date