import csv


def csv_dim(filename, separator):
	"""
	Computes rows and columns of a csv file
	"""
	row = 0
	col = 0
	with open(filename) as fi:
		reader = csv.reader(fi, delimiter=separator)
		col = len(next(reader))
		row = sum(1 for row in fi) + 1 # first line consumed by csv reader
	return row, col