counting patterns
 
Shorts