kernel_patch_verify: improve cpu count compute

hmm.. you could use grep to count as well... ofcourse ;)

Reported-by: Felipe Balbi <balbi@ti.com>
Signen-off-by: Nishanth Menon <nm@ti.com>