[Compass-ci] [PATCH v2 lkp-tests] common.sh: add function for count input cpu number