I am usually comfortable with playing rhythm guitar as and I do not lose track of time. I always practise with a metronome, however when trying to play a solo of a song by ear I lose track of which note is played on what beat?How to overcome this?
I hardly ever count the beats when playing lead unless it's a complicated rhythm. Just start out with solos you can play easily enough that you can feel the rhythm on instinct and gradually you'll be able to play more and more complicated stuff.