Getting the number of rows from ID works on the assumption that the last Children of the GuiUserArea is the last GuiLabel of the table. However, if the GuiUserArea has other object after the last GuiLabel i.e. the last GuiLabel is not the last Children, then the code will not work.
BTW, did it work for you?