[python] Number of regex matches