def pattern_count(text, pattern):
    """Find the number of occurrences of the substring 'pattern' in larger string 'text'."""
    count = 0
    for i in range(0, len(text) - len(pattern) + 1):
        if text[i:i + len(pattern)] == pattern:
            count += 1
    return count
