maths -count and match