Anheuser-Busch InBev interview question

How to perform record count check between input file and target database?