Added resources count in degreeCourse and subjects navigation.

- \Foundation\Resource : added countResourcesBySubject() and countResourcesByDegreeCourse() methods.
- mainScript.js : Changed the animation type in . Now the changePage() method use a fade effect instead of a slide effect for a smoothest navigation.
- resources.js : Added a default sorting when showing resources table.