DAN BROWN.. in python
Description Rahul likes to read novels a lot. Everybody knows that his favorite author is Dan Brown. He has a huge collection of novels and he would like to know how many of them are from Dan Brown. Fortunately, he has a friend like you so now it's your duty to help him out. Your task is to create a function named count which accepts a list as an argument containing the names of the authors and returns the total count of 'Dan Brown' in it. Input The 1st line will contain t, the number of test cases. Each test case will contain a single integer n defining the name of the book's author. Output For each test case print the count of Dan Brown's books on a separate line. Constraints 1<=t<=10 1<=n<=100 D Sample test case Input 1 4 William Shakespeare Dan Brown Chetan Bhagat Dan Brown Output 2 My attempt https://code.sololearn.com/cTE4X6eV3FnI/?ref=app