Hi @Dhamai,
Welcome to the community! Please see the image below to create an automatic display of the household identification number (you will need to do this in the xlsform):
You will then see the household identification number in the output as follows:
You could also have a look at the support article on How to: Create Sequential, Unique Serial Numbers.