Get number of threads
This function returns the maximum number of threads that can be used by any FW function.