CJam, (削除) 42 (削除ここまで) 37 bytes
3li:L#,{3b"——|"2/f=s}%{,L=},_&{N+_N}/
I've counted the dashes as one byte each since the question allows to replace them with ASCII hyphens.
Example run
$ cjam domino.cjam <<< 3
|——
|——
——|
——|
|||
|||
$ for i in {1..10}; do echo $[$(cjam domino.cjam <<< $i | wc -l)/3]; done
1
2
3
5
8
13
21
34
55
89
Dennis
- 211.7k
- 41
- 380
- 830