keywords = ['SELECT', 'INSERT', 'UPDATE', 'DELETE']

def count_query(queries):
	ret = {}
	for keyword in keywords:
		ret[keyword] = 0
	for query in queries:
		for keyword in keywords:
			if query.startswith(keyword):
				ret[keyword] += 1
				break
	return ret
@@ -187,33 +187,24 @@
 %09if 
-query.startswith(keyword)
+keyword in query
 :%0A%09%09
@@ -227,18 +227,8 @@
 = 1%0A
-%09%09%09%09break%0A
 %09ret
@@ -234,8 +234,9 @@
 turn ret
+%0A

fix a bug in count