# satisfiability_count function

How many assignments of its variables make a condition true.

## How to write it

### satisfiability_count(p)

**p**

A condition. Takes a condition, true or false.

## Examples

- $\displaystyle p \lor q = 3$

  `satisfiability_count(p or q)`

  In the solver, `satisfiability_count(p or q)` gives `3`.

  [Open in the solver](https://hilberon.com/?q=satisfiability_count%28p%20or%20q%29)

## Related functions

- [satisfiability_instances](https://hilberon.com/library/satisfiability_instances)

  The assignments of its variables that make a condition true.
- [nor](https://hilberon.com/library/nor)

  True when every condition is false.
- [truth_table](https://hilberon.com/library/truth_table)

  The truth table of a condition: a row for each choice of values.
- [nand](https://hilberon.com/library/nand)

  False when every condition is true.
- [unequal](https://hilberon.com/library/unequal)

  True when two values differ: the function form of !=.
- [logical_or](https://hilberon.com/library/logical_or)

  True when some condition is true: the function form of or.

---
Source: https://hilberon.com/library/satisfiability_count
