count is not a member of any classes but just a global variable. So it can be accessed and modified by any object. As they all access same variable, any changes made by one of them would be visible to others
Also I notice that you have a very outdated compiler. <iostream.h> was made illegal in previous century. I suggest you to update it ASAP.