204. Count the Stars

Easy · String

A night sky is represented as a string of characters. Count how many '*' characters (stars) appear in the string.

Examples

Example 1
Input: sky = ".*.*.**."
Output: 4
Explanation: Four * characters
Example 2
Input: sky = "..."
Output: 0
Explanation: No stars

Constraints