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.
['S', 'P', '7817', '7781', '5257', '8431', '17', '8529', '1501', 'c', '5', '4665', 'p', 'g', 'M', '5291', '4617', 'X', '7879', '301', 's', '5385', '3891', 'D', '8907', '1779', 'c', 'p', '6987']