$#$_++for<>!~$",glob<>;print$_,$",$#$_+1,$/for 1..$'