{"trustable":true,"sections":[{"title":"","value":{"format":"MD","content":"Cao Cao made up a big army and was going to invade the whole South China. Yu Zhou was worried about it. He thought the only way to beat Cao Cao is to have a spy in Cao Cao\u0027s army.\nBut all generals and soldiers of Cao Cao were loyal, it\u0027s impossible to convince any of them to betray Cao Cao.\n\nSo there is only one way left for Yu Zhou, send someone to fake surrender Cao Cao. Gai Huang was selected for this important mission. However, Cao Cao was not easy to believe others,\nso Gai Huang must leak some important information to Cao Cao before surrendering.\n\nYu Zhou discussed with Gai Huang and worked out $N$ information to be leaked, in happening order. Each of the information was estimated to has $a_i$ value in Cao Cao\u0027s opinion.\n\nActually, if you leak information with strict increasing value could accelerate making Cao Cao believe you. So Gai Huang decided to leak exact $M$ information with strict increasing\nvalue in happening order. In other words, Gai Huang will not change the order of the $N$ information and just select $M$ of them. Find out how many ways Gai Huang could do this."}},{"title":"Input","value":{"format":"MD","content":"The first line of the input gives the number of test cases, $T$($1\\leq 100$). $T$ test cases follow.\n\nEach test case begins with two numbers $N$($1\\leq N\\leq 10^3$) and $M$($1\\leq M\\leq N$), indicating the number of information and number of information Gai Huang will select.\nThen $N$ numbers in a line, the $i_{th}$ number $a_i$($1\\leq a_i\\leq 10^9$) indicates the value in Cao Cao\u0027s opinion of the $i_{th}$ information in happening order."}},{"title":"Output","value":{"format":"MD","content":"For each test case, output one line containing `Case #x: y`, where $x$ is the test case number (starting from $1$) and $y$ is the ways Gai Huang can select the information.\n\nThe result is too large, and you need to output the result mod by $1000000007$($10^9+7$)."}},{"title":"Sample 1","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e2\n3 2\n1 2 3\n3 2\n3 2 1\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eCase #1: 3\nCase #2: 0\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"Note","value":{"format":"MD","content":"In the first cases, Gai Huang need to leak $2$ information out of $3$. He could leak any $2$ information as all the information value are in increasing order. In the second cases,\nGai Huang has no choice as selecting any $2$ information is not in increasing order."}}]}