changed count columns to use .count method