The main verb is love. The second verbal having been functions as the verb's object: HAVE + ing + past participle BEEN.
I love that I had been in your country.
I love having been in your country.
Does that help?
- For Teachers