Edit: I realise I’m a bit too sleepy here. What exactly are you asking? Why the number is different? There are things in /proc that do not match your regular expression.
Edit2: But the fact that there are things in /proc that does not match your regular expression is not the answer. I’m not sure what is, but I am getting different number on my machine as well, even when I changed the regular expression pattern to *