Cleanup GetSectorCount function