making counts xs:integers