libsmartcols: add ncols getter

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>