{"trustable":true,"sections":[{"title":"","value":{"format":"MD","content":"\u003cp\u003eGru has not been in the limelight for a long time and is, therefore, planning something particularly nefarious. Frustrated by his minions\u0027 incapability which has kept him away from the limelight, he has built a transmogrifier — a machine which mutates minions.\n\u003c/p\u003e\n\n\u003cp\u003e\nEach minion has an intrinsic characteristic value (similar to our DNA), which is an integer. The transmogrifier adds an integer \u003cb\u003eK\u003c/b\u003e to each of the minions\u0027 characteristic value. \n\u003c/p\u003e\n\n\u003cp\u003e\nGru knows that if the new characteristic value of a minion is divisible by 7, then it will have Wolverine-like mutations.\n\u003c/p\u003e\n\n\u003cp\u003e\nGiven the initial characteristic integers of \u003cb\u003eN\u003c/b\u003e minions, all of which are then transmogrified, find out how many of them become Wolverine-like.\n\u003c/p\u003e\n"}},{"title":"Input Format","value":{"format":"MD","content":"The first line contains one integer, \u003cb\u003eT\u003c/b\u003e, which is the number of test cases. \\\nEach test case contains of $2$ lines of input.\n- The first line contains two integers \u003cb\u003eN\u003c/b\u003e and \u003cb\u003eK\u003c/b\u003e, as described in the statement\n- The next line contains \u003cb\u003eN\u003c/b\u003e integers, which denote the initial characteristic values for the minions\n"}},{"title":"Output Format","value":{"format":"MD","content":"\u003cp\u003eFor each testcase, output one integer in a new line, which is the number of Wolverine-like minions after the transmogrification.\u003c/p\u003e\n"}},{"title":"Constraints","value":{"format":"MD","content":"\u003cul\u003e\n\u003cli\u003e\u003cb\u003e1 ≤ T ≤ 100\u003c/b\u003e\u003c/li\u003e\n\u003cli\u003e\u003cb\u003e1 ≤ N ≤ 100\u003c/b\u003e\u003c/li\u003e\n\u003cli\u003e\u003cb\u003e1 ≤ K ≤ 100\u003c/b\u003e\u003c/li\u003e\n\u003cli\u003eAll initial characteristic values lie between 1 and 10\u003csup\u003e5\u003c/sup\u003e, both inclusive.\u003c/li\u003e\n\u003c/ul\u003e"}},{"title":"Sample 1","value":{"format":"MD","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\u003e1\n5 10\n2 4 1 35 1\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e1\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\nAfter transmogrification, the characteristic values become {12,14,11,45,11}, out of which only 14 is divisible by 7. So only the second minion becomes Wolverine-like."}}]}