Wrote constructor for counts struct