Count, match and color