import re


def chunks_count(page_source):
    """
    Takes source code and returns count of chunks of band entries
    considering there no more than 500 entries per chunk.
    """
    # Example: "Showing 1 to 500 of 11,839 entries"
    pattern = re.compile('Showing .* entries')
    matches = re.findall(pattern, page_source)
    matches = matches[0].split()
    entries_count = int(''.join(matches[5].split(',')))
    return (entries_count // 500) + int(entries_count % 500 > 0)