Added record count fn. Minor bug fixes

Changed location in json to look for article year data.