count-all-articles fn and tests