Dang Nishant, you have quite a busy bathroom! You should just charge admission to that thing and put in some heavy duty sensors with the income!!
Anyway, unless you put a sensor on each side of the bathroom (my bathrooms are "L" shaped, so have to go around a corner hence two sensors) and one in the shower, you'll have the lights go out on ya! The only way you could use an X10 sensor to "count" passing of people is if you set it to a VERY narrow beam via either led paint over the front of the half circle of the sensor front, or via small squares of tile/glass over the edges of the sensor; I did both, the paint is the easiest, the blocking of the sensor viewing angle is more accurate. I used it as a door entry "beam" like those ones you break the beam and it sets a tone in a small ma-and-pa kind of shop.
Anyway, back to the Bathrrom Party Patrol .... I had it working with one on DARK the other two on 24 hrs and use the DARK one to tell the other two to fire based on a macro. The DARK sensor basically just sets a FLAG, then the 24 hour sensor acts based on the FLAG status. The 24 hour sensors, when they fire, check FLAG status, if it's ON, then the DARK sensor set it that way, so they amp the lights. They keep firiing IF THERE IS MOTION, and won't start their delay counter until there is no motion. When they send the OFF command, it's a macro as well that dims the lights to OFF, then clears the flag. The only way for the FLAG to be SET is for the DARK sensor to do it. This basically bypasses the inherent nature of the DARK sensors to ignore motion until their delay is reached. I made up a VERY crude diagram quickly in MSPaint, attached here. The green lines are the sensor paths, so got the doors and all aspects of the room covered in this one.
This of course, was three sensors, about $40, six batteries every six months, time to manage, blah, blah. It was sorking, but I had ugly sensors everywhere, except the shower one, I put in the wall behind some plexi to protect it from moisture. Since the battery life was different for each of them, and it was kind of a pain, I abandoned it and used the sensors elsewhere.
Ultimately, I solved it thusly: Put a $45 Heath/Zenith in my bathrooms that also senses heat. This way, it turns on when motion is detected, and if someone is in there, regardless of motion (a Maxim by the lou can mean long spells of inactivity). This solved the problem for me and it's solid state, and 100% correct all the time and no batteries or macros to manage, or lingering doubt about guests walking in the bathroom and the macro hanging up or not firing or something. Just replace the light switch in about 10 mins and you don't touch it again for about two and a half years until it stops working (typical life span I find).
I'm obviously a strong proponent of the Russian saying, "If the only tool in your toolbox is a hammer, then every problem appears to you to be a nail!"
The shower sensor is still in place, of course, I mean, how else will I activate the shower cam and stream to the net to try and earn enough money to keep buying X10 products!?!?!?