check attempt_count on correct table