Your challenge is to create an electronic piggy bank. Write a program (or function) that when run (or called), outputs (or returns) the count of each coin you have, as well as the total amount the coins amount to.
A string, array, etc...(your choice) of the coins into your piggy bank(case insensitive).
Q - Quarter(Value of 25) D - Dime(Value of 10) N - Nickel(Value of 5) P - Penny(Value of 1)
The count of coins from the input and the total amount, separated by the non-integer delimiter of your choice. (The order in which you output the coin totals does not matter, but the total coin value(sum) must be the last element)
Input -> Output P -> 1,0,0,0,1 or 0,0,0,1,1 or 0,0,1,0,1 or 1,1 N -> 0,1,0,0,5 D -> 0,0,1,0,10 Q -> 0,0,0,1,25 QQQQ -> 0,0,0,4,100 QNDPQNDPQNDP -> 3,3,3,3,123 PPPPPPPPPP -> 10,0,0,0,10 PNNDNNQPDNPQND -> 3,6,3,2,113
Standard loopholes are not allowed.
This is code-golf, so the shortest code in bytes for each language wins!