To view the counts based on habitat and colour, assign your data to a data frame and pass those columns to table().
table()
table(df$habitat, df$colour)
1.4m articles
1.4m replys
5 comments
57.0k users