Raise exception if parameters count is different than number of given parameters