add 2 functions count entries & count pages
added tests for new functions in blog module