import math


def get_grid_size(k: int) -> int:
    """
    returns the grid size (total number of elements for a
    cgr of k length kmers

    :param: k int -- the value of k to be used
    :return: int -- the total number of elements in the grid

    """
    return int(math.sqrt(4 ** k))