getspanRowLength function

Gets spanRow length