An
r‐uniform linear cycle of length
ℓ, denoted by
C
ℓ
r, is an
r‐graph with edges
e
1
,
…
,
e
ℓ such that for every
i
∈
[
ℓ
−
1
]
,0.33em
∣
e
i
∩
e
i
+
1
∣
=
1
,0.33em
∣
e
ℓ
∩
e
1
∣
=
1, and
e
i
∩
e
j
=
∅ for all other pairs
{
i
,
j
}
,0.33em
i
≠
j. For every
r
≥
3 and
ℓ
≥
4, we show that there exists a constant
C depending on
r and
ℓ such that the number of linear
r‐graphs of girth
ℓ is at most
2
C
n
1
+
1
∕
⌊
ℓ
∕
2
⌋. Furthermore, we extend the result for
ℓ
=
4, proving that there exists a constant
C depending on
r such that the number of linear
r‐graphs without
C
4
r is at most
2
C
n
3
∕
2. The idea of the proof is to reduce the hypergraph enumeration problems to some graph enumeration problems, and then apply a variant of the graph container method, which may be of independent interest. We extend a breakthrough result of Kleitman and Winston on the number of
C
4‐free graphs, proving that the number of graphs containing at most
n
2
∕
32
log
6
n0.33em
C
4's is at most
2
11
n
3
∕
2, for sufficiently large
n. We further show that for every
r
≥
3 and
ℓ
≥
2, the number of graphs such that each of its edges is contained in only
O
(
1
) cycles of length at most
2
ℓ, is bounded by
2
3
(
ℓ
+
1
)
n
1
+
1
∕
ℓ asymptotically.