On Linux, if the process being counted has spawned an OS-level thread, that appears as a process in /proc and is included in the proc.num output. This makes proc.num[<daemon>] return a number >1 occasionally for daemon's that periodically spawn a thread.
The attached patch compares the thread group ID from /proc/<pid>/status to the pid and if they do not match ignores the thread.