fetch number of threads from flint