MIKUxICE:
I am using firebase "realtime database" and my arduino UNO board is connected to my laptop. So can i send the data through my laptop's wifi?
Yes, but you're going to have to write a program on your laptop that talks to Firebase. Google's documentation shows multiple ways to do this including helper libraries in a variety of languages.
That program can also talk to the Uno over serial to gather the corridor count data to send to Firebase. That's all quite straightforward although it may take a while to get it working even so.
But, as noted above, if you actually need any kind of accurate count, this is a hard problem to solve.