query that return count of different resources by type

Signed-off-by: semteacher <semteacher@gmail.com>
extended - filescount in folders added

Signed-off-by: semteacher <semteacher@gmail.com>
fixed some small issues with headers
Add function to calculate missed pdf files amount.

Signed-off-by: semteacher <semteacher@gmail.com>