Teacher:In this task, you are given an input list. A list contains several comma-separated items written within brackets. You need to return the count of all the numerical elements in the given list. Return 0 if no numerical element in the list.
Teacher: Now, understand the problem? Solve this instance: ['9787', 'R', 'e', '9545', '7461', '2399', 'D', '4231', '3877', '7163', '5099', '1917', '1173', '8655', '8017', '4613', 'K', 'm', 'A', '2919', 'w', 'A', '5719', '5387', '6453', '5775', 'Q', 'M', 'S', 'N', 'w', '7727', '1709', 'k', '165', 'm']
Student:
21