import re


def countRotated(text):
    """Counts the number of ocurrences of '\w\n' in text.

    Args:
        text (string): text that is going to be processed.

    Returns:
        int: number of ocurrences
    """
    return len(re.findall(r'\w\n', text))