If you know that this line is always of the same format, you can use a simple `cut`:
cut -d' ' -f3
or with `awk` you can do the whole thing including your first `grep`:
awk '$1 == "Cyclomatic:" {print $3}'
If the line might change, use `sed`:
sed -E 's/.*( min )([0-9]+).*/\2/'
or `grep -P` if available:
grep -Po ' min \K[0-9]+'
or normal `grep`:
grep -o 'min [0-9]\+'
This returns `min 4`, which you can easily filter adding another `grep` or `cut`
grep -o '[0-9]\+$'
# or
cut -d' ' -f2