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: ['r', '5747', 'x', '3577', 'a', 'W', '3477', '1505', 'A', 'X', '8787', 'v', '2035', 'X', 'M', '467', '3807', '4717', 'b', '309', 'G', 'l', '4159', '6217']
Student:
12