The solution to get the number of row is brilliantly simple.
However, I don't think the lblWBS for-loop will work until the last row. I suspect that halfway through the loop, the script will throw the cannot find by id error.
If my suspicion is wrong, do tell.