#
# HELP: SYNOPSIS:
# HELP:     generic/multivol/countvol
# HELP:
# HELP: DESCRIPTION:
# HELP:     Count how many volumes are loaded, return in $root.mrc
#
CECHO ${$root.func.var.new("string","firstvol")}
CECHO ${$root.func.var.new("int","count")}
CECHO ${$firstvol=$root.vol[current].name} ${$count=0}
{ COUNT
	VOL_SET
} COUNT ${$count+=1} ${$root.vol[current].name!=$firstvol}
CECHO ${$root.func.var.delete($root.mrc,$root)}
CECHO ${$root.func.var.new("int","mrc",$root)}
CECHO ${$root.mrc=$count}
