LPS-37293

Hi Julio,

this is the fix you requested from me today morning regarding Wiki pages counting. I generalized the solution, however currently it affects journal article and wiki page only, but later it will be beneficial. 

thanks,
Daniel