title: Count the number of occurences of a pattern in a list in Python
body: <p>Given a pattern <code>[1,1,0,1,1]</code>, and a binary list of length 100, <code>[0,1,1,0,0,...,0,1]</code>. I want to count the number of occurences of this pattern in this list. Is there a simple way to do this without the need to track the each item at every index with a variable? </p>
  
  <p>Note something like this, <code>[...,1, 1, 0, 1, 1, 1, 1, 0, 1, 1,...,0]</code> can occur but this should be counted as 2 occurrences. </p>