#!/usr/bin/env bash output="$(ssh-add -l)" if [ $? -ne 0 ]; then echo else echo -n " " echo "$output" | wc -l fi