core: Added a query to fetch the number of images in a storage domain

Change-Id: Id771444bc7d8916faa5e98fd54afb3d43157da15
Signed-off-by: Tal Nisan <tnisan@redhat.com>