def count_query(tablename, condition):
    """
    Function to process query for count process
    """
    if isinstance(tablename, str):
        pass
    else:
        raise ValueError('Tablename should be a String')
    if condition == None or isinstance(condition, str):
        pass
    else:
        raise ValueError('Condition can only be either None or String')
    if condition == None:
        query = 'select count(*) from ' + tablename
    else:
        query = 'select count(*) from ' + tablename + ' where ' + condition
    return query
