Removed the unused getCompletedCount function