Check the correct database for record count.