counting patterns
 
Magnets