Functions, data and code for count data.