Made count optional for next().  Added count and endDate to schedule object.