Number of Longest Increasing Subsequence

Given an integer array nums, return the number of longest increasing subsequences.

Notice that the sequence has to be strictly increasing.

Examples
Input: [1,3,5,4,7]
Output: 2
Hints

Number of Longest Increasing Subsequence

Given an integer array `nums`, return the number of longest increasing subsequences.