Added mysql function to count rows returned. I am echoing the number of rows in the table caption.