This is the intro to the Roy Orbison song " Pretty Woman" - it fits on an E7 chord
Use all upstrokes with your right hand and use left hand fingers 1 & 3 to play the notes that are fretted.
Don't try to run before you can walk - practice SLOWLY and methodically until you have the sequence of notes firmly established.
Then speed up gradually until you can play at the tempo of the sound file.
This riff uses Eighth notes - count - / 1 and 2 and 3 and 4 and /