Complex sentence: Although sheriffs are usually treated as being a separate post to a police chief, many sheriffs have the powers and role of a police department, while others are limited to non-policing matters such as courtroom security.
Split into simpler sentences: Although sheriffs are not usually counted as police chiefs, their agencies usually have the powers and role of a police department. Some sheriffs' agencies are limited to non-policing matters such as courtroom security.