Define @user_count in before hook