Calculating Stitch and Row Counts