I have been programming for a few years, and I know, that the following should work perfectly fine. Just trying to initialize all variables with one common type and same value.
int count = 0, 
    xmin = count, 
    xmax = count,  
    ymin = count, 
    ymax = count;

 
    
 
    