I have a good friend of the opposite sex who I've known for three years.
I have a friend of the opposite sex I've known for a few years.