Count Positive & Sum Negative Integers

Define a Python function to calculate quantity of positive integers, and sum of negative integers, given a list of numbers.

Working with lists is crucial in Python programming as it is a fundamental data structure. This specific task requires you to write a function that deals with a list of positive and negative integers. The function is expected to return a brand-new list where the first element represents the count of positive numbers, and the second element signifies the sum of all negative numbers in the original list. ### Parameters - `nums`: a list composed of positive and negative integers. ### Return Value - A list, the first element of which is the count of positive numbers in the input list, `nums`, and the second element is the sum of all the negative numbers in `nums`. If `nums` is an empty list, the function should return an empty list as well. ### Examples ```python # The list has 7 positive numbers; the sum of the negative numbers equals to -252 solution([92, 6, 73, -77, 81, -90, 99, 8, -85, 34]) # Expects [7, -252] # The list has 1 positive number; it does not contain any negative numbers solution([91]) # Expects [1, 0] # The input is an empty list solution([]) # Expects [] ```