@app.route('/api/v1/categories/<category>/acts/size', methods=['GET'])
def count_acts(category=None):
    global count_requests
    count_requests += 1
    if (request.method == 'GET'):
        temp_path = ((DB + '/') + category)
        if (category not in os.listdir(DB)):
            return Response('[]', status=400, mimetype='application/json')
        if os.path.exists(temp_path):
            data = pd.read_csv(GLOBAL_LIST)
            count = data[(data.category == category)].shape[0]
            return Response('[{0}]'.format(str(count)), status=200, mimetype='application/json')
        else:
            return Response('[]', status=204, mimetype='application/json')
    else:
        return Response('{}', status=405, mimetype='application/json')
@app.route('/api/v1/categories/<category>/acts/size', methods=['GET'])
def count_acts(category=None):
    global count_requests
    count_requests += 1
    if (request.method == 'GET'):
        temp_path = ((DB + '/') + category)
        if (category not in os.listdir(DB)):
            return Response('[]', status=400, mimetype='application/json')
        if os.path.exists(temp_path):
            data = pd.read_csv(GLOBAL_LIST)
            count = data[(data.category == category)].shape[0]
            return Response('[{0}]'.format(str(count)), status=200, mimetype='application/json')
        else:
            return Response('[]', status=204, mimetype='application/json')
    else:
        return Response('{}', status=405, mimetype='application/json')