Count the objects and match with the correct numbers