FreeBSD:
```
$ sysctl hw.ncpu
hw.ncpu: 1
```