Adds strictness to countTypes to fix memory leak
Adds options for multi-threaded runtime