Fixed calcurating the number of star in quadrant