Update thread.php

rename method getNumberOfThreads() to countThreads() in L94