def h2ch(h, e):
    """Transform from *h* value to column *w* count value, using the
    *e.css('ch')* (column height) as column measure."""
    gh = e.gh
    ch = e.css('ch', 0)
    if ch + gh:
        return (h + gh) / (ch + gh)
    return 0
