getThreadNumber function

Return the number of the current thread