Update thread_controller.php

rename method getNumberOfThreads() to countThreads() in L9