introduce --name switch and print number of open items in listing

As per summary quite obvious what it does.