Put expensive info action count behind $wgMiserMode

Change-Id: Ie0507b9ed62556f8caaaaf9499a4a40b3342b5af
(cherry picked from commit 34a9db1d673f9498e0dbedc520ece0958328235c)