that goes to grep, which is a program to apply regular expressions. The option -P enables PEARL like behaviour (which enables you to use the +), and the -o tells grep to only output the matching part of the string. Each match will be printed to a new line

use head to pick the line you want. Since we want the first number, we will pick the first line. If you were interested in the one, you would do head -2.