SELECT COUNT(id) as total FROM documentos WHERE tabla='publicaciones' AND vinculo=4