Wonderful programming and programming skills - calculate the total number of data before grabbing the data in the database...