Parameterized thread count