Student or Learner
Are the both sentences correct?
How many cities of XXX (country's name) have you been to?
How many cities of XXX (country's name) have you visited?
I would prefer "How many cities in [name of country] have you visited?"
Remember - if you don't use correct capitalisation, punctuation and spacing, anything you write will be incorrect.
I prefer 'How many European/Italian/Japanese cities have you visited?