Change queries for counts of whole tables
Merge branch 'enhancing357_showing_item_count' into develop

Conflicts:
	app/views/entities_search/index.html.haml
	app/views/repositories/index.html.haml