Use selectedItems count instead of item count (#18)

Signed-off-by: Jorge Ruesga <jorge@ruesga.com>