Add single-parameter .count

Issue: #868