Yes, the PA or Sgt will ask about that, it's part of your medical screening. As for it affecting your enlistment. That depends on a number of factors that cannot be discussed on an open forum, nor will any of us Medical Pers discuss specifics here anyway.
Be honest during your appointment, just because you sought counseling doesn't disqualify you. I got counseling when I got back from tour. Doesn't mean I get kicked out for it.
I have worked recruiting, I have seen people who have had counseling got through no problem, I've seen them need to do to a little bit of extra leg work, and I've seen them denied, and sometimes it wasn't even for the problem that got them counseling to begin with.
Ok, so now that I'm done preaching my BS from the pulpit. The short version is:
Don't sweat it, I wouldn't. But I'm just not that kind of person anyway.
Good Luck Superbia