count() returns -1 for infinite recurrence