Added Functionality To Count Rows In Tables