Try/catch on count